﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Presenters.OtbData.Register
{
    public class PresenterRegisterFirstStep
    {
        IFirstStepForRegister view;

        public PresenterRegisterFirstStep(IFirstStepForRegister view)
        {
            this.view = view;
        }

        public void UpdateViewData()
        {
            view.Name = view.OtbDataToRegister.Name;
            view.Managment = view.OtbDataToRegister.Managment;
            view.Background = view.OtbDataToRegister.Background;
            view.ExpirationDay = view.OtbDataToRegister.ExpirationDay;
        }

        public void ChargeOtbData()
        {
            view.OtbDataToRegister.Name = view.Name;
            view.OtbDataToRegister.Managment = view.Managment;
            view.OtbDataToRegister.Background = view.Background;
            view.OtbDataToRegister.ExpirationDay = view.ExpirationDay;
        }

        public void LoadImage(string path)
        {
            view.Background = path;          
        }
    }
}
